home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / tcsh / dist / config / config.hpux < prev    next >
Encoding:
Text File  |  1991-12-21  |  3.1 KB  |  124 lines

  1. /*
  2.  * config.h -- configure various defines for tcsh
  3.  *
  4.  * All source files should #include this FIRST.
  5.  *
  6.  * Edit this to match your system type.
  7.  */
  8.  
  9. /****************** System dependant compilation flags ****************/
  10. /*
  11.  * POSIX    This system supports IEEE Std 1003.1-1988 (POSIX).
  12.  */
  13. #ifdef __hpux
  14. # define POSIX
  15. #else
  16. # undef POSIX
  17. #endif
  18.  
  19. #if defined(__hpux) && !defined(hpux)
  20. # define hpux
  21. #endif /* __hpux && !hpux */
  22.  
  23. #if __STDC__ && !defined(__GNUC__)
  24. # define _POSIX_SOURCE
  25. # define _HPUX_SOURCE
  26. #endif
  27.  
  28. /*
  29.  * POSIXJOBS    This system supports the optional IEEE Std 1003.1-1988 (POSIX)
  30.  *        job control facilities.
  31.  */
  32. #ifdef __hpux
  33. # define POSIXJOBS
  34. #else
  35. # undef POSIXJOBS
  36. #endif
  37.  
  38. /*
  39.  * VFORK    This machine has a vfork().  
  40.  *        It used to be that for job control to work, this define
  41.  *        was mandatory. This is not the case any more.
  42.  *        If you think you still need it, but you don't have vfork, 
  43.  *        define this anyway and then do #define vfork fork.  
  44.  *        I do this anyway on a Sun because of yellow pages brain damage,
  45.  *        [should not be needed under 4.1]
  46.  *        and on the iris4d cause    SGI's fork is sufficiently "virtual" 
  47.  *        that vfork isn't necessary.  (Besides, SGI's vfork is weird).
  48.  *        Note that some machines eg. rs6000 have a vfork, but not
  49.  *        with the berkeley semantics, so we cannot use it there either.
  50.  */
  51. #undef VFORK
  52.  
  53. /*
  54.  * BSDJOBS    You have BSD-style job control (both process groups and
  55.  *        a tty that deals correctly
  56.  */
  57. #define BSDJOBS
  58.  
  59. /*
  60.  * BSDSIGS    You have 4.2-style signals, rather than USG style.
  61.  *        Note: POSIX systems should not define this unless they
  62.  *        have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
  63.  */
  64. #define BSDSIGS
  65.  
  66. /*
  67.  * BSDTIMES    You have BSD-style process time stuff (like rusage)
  68.  *        This may or may not be true.  For example, Apple Unix
  69.  *        (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
  70.  */
  71. #undef BSDTIMES
  72.  
  73. /*
  74.  * BSDNICE    Your system uses setpriority() instead of nice, to
  75.  *        change a processes scheduling priority
  76.  */
  77. #undef BSDNICE
  78.  
  79. /*
  80.  * TERMIO    You have struct termio instead of struct sgttyb.
  81.  *         This is usually the case for SVID systems, where
  82.  *        BSD uses sgttyb. POSIX systems should define this
  83.  *        anyway, even though they use struct termios.
  84.  */
  85. #define TERMIO
  86.  
  87. /*
  88.  * SVID        Your machine is SVID complient (Sys V, HPUX, A/UX)
  89.  *        NOTE: don't do this if you are on a Pyramid -- tcsh is
  90.  *        built in a BSD universe.
  91.  *        Set SVID to 1, 2, 3, or 4, depending the version of System V
  92.  *        you are running. Or set it to 0 if you are not SVID based
  93.  */
  94. #define SVID    3
  95.  
  96. /*
  97.  * SIGVOID    Define this if your signal handlers return void.  On older
  98.  *        systems, signal returns int, but on newer ones, it returns void.
  99.  */
  100. #define SIGVOID 
  101.  
  102. /*
  103.  * HAVEDUP2    Define this if your system supports dup2().
  104.  */
  105. #undef HAVEDUP2
  106.  
  107. /*
  108.  * UTHOST    Does the utmp file have a host field?
  109.  */
  110. #ifdef __hpux
  111. # define UTHOST
  112. #else
  113. # undef UTHOST
  114. #endif /* __hpux */
  115.  
  116. /*
  117.  * DIRENT    Your system has <dirent.h> instead of <sys/dir.h>
  118.  */
  119. #define DIRENT
  120. /****************** local defines *********************/
  121. /****************** configurable hacks ****************/
  122. /* have been moved to config_f.h */
  123. #include "config_f.h"
  124.